package com.pactera.miyuangroup.vo.request.app;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Random;

/**
 * 描述:
 *
 * @outhor 张汉卿
 * @create 2018-04-28 16:47
 */

@Data
@ApiModel(description = "完成补货插入数据")
public class AppAddReplenishmentReq {

    /**
     * 补货单号
     */
    @ApiModelProperty(value = "补货单号")
    private String numbers;
    /**
     * 售货机ID
     */
    @ApiModelProperty(value = "售货机ID")
    private String vendorId;
    /**
     * 操作人员主键ID
     */
    @ApiModelProperty(value = "操作人员主键ID")
    private String userId;
    /**
     * 本次总金额
     */
    @ApiModelProperty(value = "本次总金额")
    private BigDecimal totalAmount;
    /**
     * 补充时间
     */
    /*@ApiModelProperty(value = "补充时间")
    private String replenishmentTime;*/

    /*
    * 工控号
    * */
    @ApiModelProperty(value = "工控号")
    private String controlNumber;

    public String getNumbers() {
        Random rand = new Random();
        int i = rand.nextInt(9000) + 1000;
        return new com.pactera.miyuangroup.util.Date().toTimeStamp() + i;
    }

    public void setNumbers(String numbers) {
        Random rand = new Random();
        int i = rand.nextInt(9000) + 1000;
        this.numbers = new com.pactera.miyuangroup.util.Date().toTimeStamp() + i;
    }
}
